<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('phpcms','header'); ?>

<!--begin main-->
<div id="main">
  <div id="main_l" class="bdr_1">
    <!--位置导航-->
    <div id="position"><a href="">首页</a><?php echo catpos($catid);?></div>
    <div class="bdr_2">
      <ul class="pic_list">
<?php echo tag('phpcms', 'tag_content_pic', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `phpcms_content` WHERE  status=99   AND  `thumb`!='' ".get_sql_catid($catid)." ORDER BY contentid DESC", 0, 4, array (  'class' => 'url',  'target' => '_blank',  'height' => '87',  'width' => '142',  'titlelen' => '16',));?>
      </ul>
    </div>
<?php echo tag('phpcms', 'tag_content_list', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `phpcms_content` WHERE  status=99  ".get_sql_catid($catid)." ORDER BY contentid DESC", $page, 20, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '65',), $catid);?>
  </div>
  <div id="main_r">
    <!--广告位-->
    <div class="ad_side"><script language="javascript" src="data/js.php?id=5"></script></div>
    <h4>推荐图片文章</h4>
    <div>
      <ul class="pic_list">
        <?php echo tag('phpcms', 'tag_content_pic', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `phpcms_content` WHERE  status=99   AND  `thumb`!='' ".get_sql_catid($catid)." ORDER BY contentid DESC", 0, 9, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '12',  'height' => '62',  'width' => '87',));?>
      </ul>
    </div>
<?php echo block("list_article", 1);?>
    <h4>热点文章</h4>
    <div>
      <ul class="text_list">
       <?php echo tag('phpcms', 'tag_content', "SELECT c.contentid,c.catid,c.typeid,c.areaid,c.title,c.style,c.thumb,c.keywords,c.description,c.userid,c.updatetime,c.inputtime,c.url,n.hits FROM `phpcms_content` c,`phpcms_content_count` n WHERE  c.contentid=n.contentid AND c.`status`=99 ".get_sql_catid($catid)." ORDER BY n.hits DESC", 0, 10, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '46',));?>
      </ul>
    </div>
<?php echo block("list_$catid", 2);?>
  </div>
</div>
<!--end main-->
<?php include template('phpcms','footer'); ?>